package com.groupbuying.settleconsumer.connector;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Author: cuich
 * @Email cuichanghao@linku.com.cn
 * @Date: 2019/5/13 17:47
 * @Des 服务商中心接口连接器
 */
@Service
@FeignClient(name = "service-sysconfig")
public interface SysconfigFeign {

    // 提现 - 提现id
    @RequestMapping(value = "/common/settle/getWithdrawalId", method = RequestMethod.GET)
    String getWithdrawalId();
    //结算分账-分账id
    @RequestMapping(value = "/common/pay/getSettleId", method = RequestMethod.GET)
    String getSettleId();
    //结算分账-流水id
    @RequestMapping(value = "/common/flow/getFlowId", method = RequestMethod.GET)
    String getFlowId();
    //生成分账规则id
    @RequestMapping(value = "/common/settle/getSettleRuleId", method = RequestMethod.GET)
    String getRuleId();
    //获取分账优惠规则
    @RequestMapping(value = "/opexRule/getRule", method = RequestMethod.GET)
    Map getOpexRule(@RequestParam Map<String,Object> param);
    //获取分成比例
    @RequestMapping(value = "/config/getSettleScale", method = RequestMethod.GET)
    Map getRule();
    //获取优惠买单分成比例
    @RequestMapping(value = "/config/getGYSettleScale", method = RequestMethod.GET)
    Map getYhmdRule();
    //获取主商户号
    @RequestMapping(value = "/common/ys/getPayeeUsercode", method = RequestMethod.GET)
    String getPayeeUsercode();
    //获取在银盛开设的平台报备账号
    @RequestMapping(value = "/common/ys/getPlanformCode", method = RequestMethod.GET)
    String getYSPlanformCode();
    //获取在银盛开设的积分账户---待定
    @RequestMapping(value = "/common/ys/getYSgymarketing", method = RequestMethod.GET)
    String getYSgymarketing();


}